package com.jason.basicandroid.contentprovider;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class StringsDemo extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.strings);
        
        String strFormat = getString(R.string.java_format_string);
        String str = String.format(strFormat, "Hello", "Android");
        ((TextView)findViewById(R.id.tvFormat)).setText(str);
    }

    public void onBtnBackClick(View v) {
    	Intent backIntent = new Intent();
    	
    	setResult(RESULT_OK, backIntent);
    	
    	finish();
    }
}
